package com.sample.dubbo.demo.exceptions;

public class BusinessException extends RuntimeException {
    private String code;

    public BusinessException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public BusinessException(String code, String msg, Throwable ex) {
        super(msg, ex);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
